package com.easy.dfcapi.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * Created by mac on 2018/1/3.
 */
public class QuestionRes {

    private String questionId;

    private String title;

    private String question;

    private String answerId;

    private String answer;

    private String replyId;

    private String reply;

    private List<ImgRes> images;

    private Integer userId;

    private Integer pageIndex;

    private Integer pageSize;

    private String productId;

    public QuestionRes(){
        pageIndex = 0;
        pageSize = 15;
    }


    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getReplyId() {
        return replyId;
    }

    public void setReplyId(String replyId) {
        this.replyId = replyId;
    }

    public String getReply() {
        return reply;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public List<ImgRes> getImages() {
        return images;
    }

    public void setImages(List<ImgRes> images) {
        this.images = images;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getLimitIndex() {

        return this.pageSize * this.getPageIndex();
    }
    public Integer getLimitSize() {
        return pageSize;
    }
}